// 模拟接口文件：api/product.js

export function getProductDetail(productId) {
  // 模拟后端返回的数据
  return new Promise((resolve) => {
    resolve({
      code: 200,
      data: {
        product: {
          productId: productId,
          productName: '恒源祥2020春季长袖白色T恤 新款春装',
          productType: 'T恤',
        },
        productStore: {
          productPrice: 350,
          productStock: 100,
          productDescription: '优质纯棉，舒适透气',
          storeId: 216,
        },
        productImages: [
          // { imageUrl: '../static/images/ProductDetail/product03.jpg' },
          // { imageUrl: '../static/images/ProductDetail/product02.jpg' },
          { imageUrl: '/static/petshopLog.png' },
        ],
        productSpecifications: [
          { specId: 1, specName: '颜色', specValue: '白色' },
          { specId: 2, specName: '尺码', specValue: 'M' },
        ],
      },
    });
  });
}
